﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000459 RID: 1113
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class EnterFantasticStoryActivityStageScRsp : IMessage<EnterFantasticStoryActivityStageScRsp>, IMessage, IEquatable<EnterFantasticStoryActivityStageScRsp>, IDeepCloneable<EnterFantasticStoryActivityStageScRsp>, IBufferMessage
	{
		// Token: 0x17000E4A RID: 3658
		// (get) Token: 0x06003201 RID: 12801 RVA: 0x0008940F File Offset: 0x0008760F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<EnterFantasticStoryActivityStageScRsp> Parser
		{
			get
			{
				return EnterFantasticStoryActivityStageScRsp._parser;
			}
		}

		// Token: 0x17000E4B RID: 3659
		// (get) Token: 0x06003202 RID: 12802 RVA: 0x00089416 File Offset: 0x00087616
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return EnterFantasticStoryActivityStageScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000E4C RID: 3660
		// (get) Token: 0x06003203 RID: 12803 RVA: 0x00089428 File Offset: 0x00087628
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return EnterFantasticStoryActivityStageScRsp.Descriptor;
			}
		}

		// Token: 0x06003204 RID: 12804 RVA: 0x0008942F File Offset: 0x0008762F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnterFantasticStoryActivityStageScRsp()
		{
		}

		// Token: 0x06003205 RID: 12805 RVA: 0x00089438 File Offset: 0x00087638
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnterFantasticStoryActivityStageScRsp(EnterFantasticStoryActivityStageScRsp other) : this()
		{
			this.battleId_ = other.battleId_;
			this.aIHBDNKBNMH_ = other.aIHBDNKBNMH_;
			this.retcode_ = other.retcode_;
			this.battleInfo_ = ((other.battleInfo_ != null) ? other.battleInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06003206 RID: 12806 RVA: 0x0008949C File Offset: 0x0008769C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnterFantasticStoryActivityStageScRsp Clone()
		{
			return new EnterFantasticStoryActivityStageScRsp(this);
		}

		// Token: 0x17000E4D RID: 3661
		// (get) Token: 0x06003207 RID: 12807 RVA: 0x000894A4 File Offset: 0x000876A4
		// (set) Token: 0x06003208 RID: 12808 RVA: 0x000894AC File Offset: 0x000876AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BattleId
		{
			get
			{
				return this.battleId_;
			}
			set
			{
				this.battleId_ = value;
			}
		}

		// Token: 0x17000E4E RID: 3662
		// (get) Token: 0x06003209 RID: 12809 RVA: 0x000894B5 File Offset: 0x000876B5
		// (set) Token: 0x0600320A RID: 12810 RVA: 0x000894BD File Offset: 0x000876BD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AIHBDNKBNMH
		{
			get
			{
				return this.aIHBDNKBNMH_;
			}
			set
			{
				this.aIHBDNKBNMH_ = value;
			}
		}

		// Token: 0x17000E4F RID: 3663
		// (get) Token: 0x0600320B RID: 12811 RVA: 0x000894C6 File Offset: 0x000876C6
		// (set) Token: 0x0600320C RID: 12812 RVA: 0x000894CE File Offset: 0x000876CE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17000E50 RID: 3664
		// (get) Token: 0x0600320D RID: 12813 RVA: 0x000894D7 File Offset: 0x000876D7
		// (set) Token: 0x0600320E RID: 12814 RVA: 0x000894DF File Offset: 0x000876DF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneBattleInfo BattleInfo
		{
			get
			{
				return this.battleInfo_;
			}
			set
			{
				this.battleInfo_ = value;
			}
		}

		// Token: 0x0600320F RID: 12815 RVA: 0x000894E8 File Offset: 0x000876E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as EnterFantasticStoryActivityStageScRsp);
		}

		// Token: 0x06003210 RID: 12816 RVA: 0x000894F8 File Offset: 0x000876F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(EnterFantasticStoryActivityStageScRsp other)
		{
			return other != null && (other == this || (this.BattleId == other.BattleId && this.AIHBDNKBNMH == other.AIHBDNKBNMH && this.Retcode == other.Retcode && object.Equals(this.BattleInfo, other.BattleInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06003211 RID: 12817 RVA: 0x00089568 File Offset: 0x00087768
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.BattleId != 0U)
			{
				num ^= this.BattleId.GetHashCode();
			}
			if (this.AIHBDNKBNMH != 0U)
			{
				num ^= this.AIHBDNKBNMH.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.battleInfo_ != null)
			{
				num ^= this.BattleInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06003212 RID: 12818 RVA: 0x000895EF File Offset: 0x000877EF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06003213 RID: 12819 RVA: 0x000895F7 File Offset: 0x000877F7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06003214 RID: 12820 RVA: 0x00089600 File Offset: 0x00087800
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.BattleId != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.BattleId);
			}
			if (this.AIHBDNKBNMH != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.AIHBDNKBNMH);
			}
			if (this.battleInfo_ != null)
			{
				output.WriteRawTag(58);
				output.WriteMessage(this.BattleInfo);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06003215 RID: 12821 RVA: 0x00089694 File Offset: 0x00087894
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.BattleId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BattleId);
			}
			if (this.AIHBDNKBNMH != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AIHBDNKBNMH);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.battleInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.BattleInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06003216 RID: 12822 RVA: 0x0008971C File Offset: 0x0008791C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(EnterFantasticStoryActivityStageScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.BattleId != 0U)
			{
				this.BattleId = other.BattleId;
			}
			if (other.AIHBDNKBNMH != 0U)
			{
				this.AIHBDNKBNMH = other.AIHBDNKBNMH;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.battleInfo_ != null)
			{
				if (this.battleInfo_ == null)
				{
					this.BattleInfo = new SceneBattleInfo();
				}
				this.BattleInfo.MergeFrom(other.BattleInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06003217 RID: 12823 RVA: 0x000897AC File Offset: 0x000879AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06003218 RID: 12824 RVA: 0x000897B8 File Offset: 0x000879B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 24U)
				{
					if (num == 16U)
					{
						this.BattleId = input.ReadUInt32();
						continue;
					}
					if (num == 24U)
					{
						this.AIHBDNKBNMH = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 58U)
					{
						if (this.battleInfo_ == null)
						{
							this.BattleInfo = new SceneBattleInfo();
						}
						input.ReadMessage(this.BattleInfo);
						continue;
					}
					if (num == 80U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04001399 RID: 5017
		private static readonly MessageParser<EnterFantasticStoryActivityStageScRsp> _parser = new MessageParser<EnterFantasticStoryActivityStageScRsp>(() => new EnterFantasticStoryActivityStageScRsp());

		// Token: 0x0400139A RID: 5018
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400139B RID: 5019
		public const int BattleIdFieldNumber = 2;

		// Token: 0x0400139C RID: 5020
		private uint battleId_;

		// Token: 0x0400139D RID: 5021
		public const int AIHBDNKBNMHFieldNumber = 3;

		// Token: 0x0400139E RID: 5022
		private uint aIHBDNKBNMH_;

		// Token: 0x0400139F RID: 5023
		public const int RetcodeFieldNumber = 10;

		// Token: 0x040013A0 RID: 5024
		private uint retcode_;

		// Token: 0x040013A1 RID: 5025
		public const int BattleInfoFieldNumber = 7;

		// Token: 0x040013A2 RID: 5026
		private SceneBattleInfo battleInfo_;
	}
}
